import { createRouter, createWebHistory } from "vue-router";
import Home from '../views/home.vue'
import Index from '../views/index.vue'
import Course from '../views/course.vue'
import Detail from '../views/detail.vue'
import Particulars from '../views/particulars.vue'
import VideoDetail from '../views/videoDetail.vue'
import speDetail from '../views/speDetail.vue'

const routes = [
    {
      path:'/',
      name:'index',
      component:Index
    },
    {
        path: '/home',
        name: 'home',
        component: Home
    },
    {
        path: '/course',
        name: 'course',
        component: Course
    },
    {
        path: '/detail',
        name: 'detail',
        component: Detail
    },
    {
        path: '/particulars',
        name: 'particulars',
        component: Particulars
    },
    {
        path: '/videoDetail',
        name: 'videoDetail',
        component: VideoDetail
    },
    {
        path: '/speDetail',
        name: 'speDetail',
        component: speDetail
    }
]

const router = createRouter({
    history:createWebHistory(),
    routes
})

export default router
